From: Ray Strode Date: Thu, 4 Apr 2013 20:13:07 +0000 (-0400) Subject: background: when updating image remove old one from cache X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4367 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e98c6ff31b96dd6ab26f87e6330266a24925fb88;p=gnome-shell.git background: when updating image remove old one from cache We're removing the new content from the cache instead of the old content. This commit fixes that. https://bugzilla.gnome.org/show_bug.cgi?id=697395 --- diff --git a/js/ui/background.js b/js/ui/background.js index 4994c05a3..2dbde4ade 100644 --- a/js/ui/background.js +++ b/js/ui/background.js @@ -426,7 +426,7 @@ const Background = new Lang.Class({ content.brightness = this._brightness; content.vignette_sharpness = this._vignetteSharpness; - this._cache.removeImageContent(content); + this._cache.removeImageContent(this._images[index].content); this._images[index].content = content; this._watchCacheFile(filename); },